package com.tgy.ao;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author tianguiyin
 * @version 1.0
 * @date 2022/6/20 21:42
 */
@Data
@NoArgsConstructor
public class LoginAo {

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    // @Length(min = Constant.USERNAME_MIN_LENGTH, max = Constant.USERNAME_MAX_LENGTH, message = "用户名长度在5-10个字符")
    @ApiModelProperty(value = "用户名")
    private String username;

    /**
     * 用户密码
     */
    @NotBlank(message = "密码不能为空")
    // @Length(min = Constant.USERNAME_MIN_LENGTH, max = Constant.USERNAME_MAX_LENGTH, message = "密码长度在5-20个字符")
    @ApiModelProperty(value = "用户密码")
    private String password;

    /**
     * 验证码
     */
    @ApiModelProperty(value = "验证码")
    private String code;

    /**
     * 用户登录时有的IP地址
     */
    @ApiModelProperty(value = "用户登录时有的IP地址")
    private String ip;

}
